package oop5.pc;

public class Ram implements NeiCun {    //实现接口NeiCun的类
   private int volume; //内存容量

    public Ram(int volume) {
        this.volume = volume;
    }

    @Override
    public void show() {
        System.out.println("内存容量是：" + volume + "GB");
    }

    public int getVolume() {
        return volume;
    }
}
